package com.xywl.escort.view.address;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.AddrReq;
import com.xywl.escort.bean.BaseResp;

/**
 * Created by 32422 on 2018/3/7.
 */

public interface AddAddressContract {

    interface Presenter extends BasePresenter {
        void takeView(AddAddressContract.View view);

        void addUserShippingAddress(AddrReq req);

        void updateUserShippingAddress(AddrReq req);
    }

    interface View extends BaseView<Presenter> {
        void addAddressSuccess(BaseResp resp);

        void addAddressFailure(String msg);

        void updateAddressSuccess(BaseResp resp);

        void updateAddressFailure(String msg);
    }
}
